package demo.controller;

import demo.info.UserInfo;
import demo.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {

//    @Qualifier("userInfo1")
    @Resource(name = "userInfo1")
    @Autowired
    private UserInfo userInfo;

    @Autowired
    private UserService userService;

    public void say(){
        System.out.println(userInfo);
        System.out.println("hello");
    }
}
